package com.ruoyi.report_kf.domain.vo;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.report_tg.domain.vo.ExcelGeneralVo;
import com.ruoyi.report_tg.domain.vo.TdczbhslBaDetailVo;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 填料塑性指数试验检测记录主视图对象 report_kf_tlsxzsjlb_bs_info
 *
 * @author zyb
 * @date 2024-11-18
 */
@Data
@ExcelIgnoreUnannotated
public class ReportKfTlsxzsjlbBsInfoVo extends ExcelGeneralVo {

    private static final long serialVersionUID = 1L;

    /**
     * 一份excel表格的唯一id(其他的excel主表，都应有此字段）
     */
    @ExcelProperty(value = "一份excel表格的唯一id(其他的excel主表，都应有此字段）")
    private Long excelId;

    /**
     * 共几页
     */
    @ExcelProperty(value = "共几页")
    private Long totalPage;

    /**
     * 第几页
     */
    @ExcelProperty(value = "第几页")
    private Long page;

    /**
     * 记录编号
     */
    @ExcelProperty(value = "记录编号")
    private String jilbh;

    /**
     * 检测单位名称
     */
    @ExcelProperty(value = "检测单位名称")
    private String jiancdwmc;

    /**
     * 工程名称
     */
    @ExcelProperty(value = "工程名称")
    private String gongcmc;

    /**
     * 工程部位/用途
     */
    @ExcelProperty(value = "工程部位/用途")
    private String gongcbwyt;

    /**
     * 样品名称
     */
    @ExcelProperty(value = "样品名称")
    private String yangpmc;

    /**
     * 样品编号
     */
    @ExcelProperty(value = "样品编号")
    private String yangpbh;

    /**
     * 样品数量
     */
    @ExcelProperty(value = "样品数量")
    private String yangpsl;

    /**
     * 样品状态
     */
    @ExcelProperty(value = "样品状态")
    private String yangpzt;

    /**
     * 样品时间
     */
    @ExcelProperty(value = "样品时间")
    private String yangpsj;

    /**
     * 试验检测日期
     */
    @ExcelProperty(value = "试验检测日期")
    private String shiyjcrq;

    /**
     * 试验条件温度
     */
    @ExcelProperty(value = "试验条件温度")
    private String shiytjwd;

    /**
     * 试验条件湿度
     */
    @ExcelProperty(value = "试验条件湿度")
    private String shiytjsd;

    /**
     * 检测依据
     */
    @ExcelProperty(value = "检测依据")
    private String jiancyj;

    /**
     * 判定依据
     */
    @ExcelProperty(value = "判定依据")
    private String pandyj;

    /**
     * 检测依据ids
     */
    @ExcelProperty(value = "检测依据ids")
    private String jiancyjIds;

    /**
     * 判定依据ids
     */
    @ExcelProperty(value = "判定依据ids")
    private String pandyjIds;

    /**
     * 主要仪器设备名称及编号
     */
    @ExcelProperty(value = "主要仪器设备名称及编号")
    private String zhuyyqsbmcjbh;

    /**
     * 设备id逗号分隔
     */
    @ExcelProperty(value = "设备id逗号分隔")
    private String shebIds;

    /**
     * 附加声明
     */
    @ExcelProperty(value = "附加声明")
    private String fujsm;

    /**
     * 检测结果单值
     */
    @ExcelProperty(value = "检测结果单值")
    private BigDecimal jiancjg;

    /**
     * 样品缩分方法
     */
    @ExcelProperty(value = "样品缩分方法")
    private String yangpsfff;

    /**
     * 试验次数1
     */
    @ExcelProperty(value = "试验次数1")
    private String shiycs1;

    /**
     * 试验次数2
     */
    @ExcelProperty(value = "试验次数2")
    private String shiycs2;

    /**
     * 液限（%）1
     */
    @ExcelProperty(value = "液限", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String yex1;

    /**
     * 液限（%）2
     */
    @ExcelProperty(value = "液限", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String yex2;

    /**
     * 液限测定值（%）
     */
    @ExcelProperty(value = "液限测定值", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String yexcdz;

    /**
     * 平均塑限（%）
     */
    @ExcelProperty(value = "平均塑限", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String pingjsx;

    /**
     * 塑性指数（%）
     */
    @ExcelProperty(value = "塑性指数", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private String suxzs;


    /**
     * 详细表
     */
    private List<ReportKfTlsxzsjlbBaDetailVo> baDetailVos1; // 上半部分6行
    private List<ReportKfTlsxzsjlbBaDetailVo> baDetailVos2; // 下半部分2行

    public ReportKfTlsxzsjlbBsInfoVo() {
        baDetailVos1 = new ArrayList<>(6);
        baDetailVos2 = new ArrayList<>(2);
        for (long i = 1; i <= 6L; i++) {
            baDetailVos1.add(new ReportKfTlsxzsjlbBaDetailVo(1111L, i));
        }
        for (long i = 7; i <= 8L; i++) {
            baDetailVos1.add(new ReportKfTlsxzsjlbBaDetailVo(1111L, i));
        }

    }

}
